package com.cneport.das.client.conf;

import com.cneport.das.common.validate.FieldCheck;
import com.cneport.das.common.validate.FvEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.io.Serializable;

/**
 * @Desc dasClient.xml的对应实体
 * @Ver 1.0
 * @Author GavinZhang
 * @Company 东方物通科技有限（北京）公司
 * @Date 2021-12-16 17:03:15
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "corp")
public class TransConf implements Serializable {
    @FieldCheck(name = "企业编号", type = FvEnum.STRING, isNullable = false)
    @XmlElement(name = "corpNo")
    private String corpNo;
    @FieldCheck(name = "企业名称", type = FvEnum.STRING, isNullable = false)
    @XmlElement(name = "corpName")
    private String corpName;
    @XmlElement(name = "corpAlias")
    private String corpAlias;
    @XmlElement(name = "senderId")
    private String senderId;
    @XmlElement(name = "dxpNo")
    private String dxpNo;
    @FieldCheck(name = "加密秘钥版本", type = FvEnum.STRING, isNullable = false)
    @XmlElement(name = "encoderVer")
    private String encoderVer;
    @XmlElement(name = "enableEnc")
    private String enableEnc;
    @FieldCheck(name = "企业证书", type = FvEnum.STRING, isNullable = false)
    @XmlElement(name = "licence")
    private String licence;

}
